﻿using UnityEngine;
using System.Collections;

public class ionbeamtest : MonoBehaviour {
	public int rotateSpeed;

	
	// Use this for initialization
	void Start () {
		
		rotateSpeed = 50;
	
	}
	
	// Update is called once per frame
	void Update () 
    {
        //transform.rotation = Quaternion.Euler(Mathf.Sin(Time.time * rotateSpeed) * -45, 90, 270);
         transform.rotation = Quaternion.Euler(0,0,Mathf.PingPong(Time.time * rotateSpeed,  180.0f) + 90);
	}
}
